<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Tag extends Model
{
    /**
     * 添加模型关联
     */
    public function post()
    {
        return $this->belongsToMany('App\Post');
    }
}
